@model IEnumerable<Hub.Domain.Entities.Service>
@{
	ViewBag.Title = "Services";
}
<h1>Services</h1>
<p>
	@Html.ActionLink("Create", "Create")
</p>
<table>
	<tr>
		<th>Type</th>
		<th>Name </th>
		<th>URL </th>
		<th></th>
	</tr>
	@foreach (var item in Model)
 {
		<tr>
			<td>
				@Html.DisplayFor(modelItem => item.ServiceType.Name)
			</td>
			<td>
				@Html.DisplayFor(modelItem => item.Name)
			</td>
			<td>
				@Html.DisplayFor(modelItem => item.ActualPath)
			</td>
			<td>
				@Html.ActionLink("Edit", "Edit", new { id = item.ID }) |
				@Html.ActionLink("Delete", "Delete", new { id = item.ID })
			</td>
		</tr>
 }
</table>
